snapcast: fix compilation with boost 1.89.0
authorSzabolcs Hubai <[email protected]>
Sun, 24 Aug 2025 13:37:40 +0000 (15:37 +0200)
committerTianling Shen <[email protected]>
Tue, 9 Sep 2025 04:57:14 +0000 (12:57 +0800)
Boost upgrade hit Snapcast again: badaix/snapcast#1413

This patch is based on commit badaix/snapcast@d2e1635ebd96 ("Fix
building with boost v1.89.0").

Refs: 965dc7088e6c ("boost: Updates package to version 1.89.0")

Signed-off-by: Szabolcs Hubai <[email protected]>
sound/snapcast/patches/005-v0.32.4-fix-building-with-boost-v1.89.0.patch [new file with mode: 0644]

diff --git a/sound/snapcast/patches/005-v0.32.4-fix-building-with-boost-v1.89.0.patch b/sound/snapcast/patches/005-v0.32.4-fix-building-with-boost-v1.89.0.patch
new file mode 100644 (file)
index 0000000..dc13fbc
--- /dev/null
@@ -0,0 +1,19 @@
+From d2e1635ebd96ac76cc779cb3ab73bae10fd88fd1 Mon Sep 17 00:00:00 2001
+From: badaix <[email protected]>
+Date: Thu, 14 Aug 2025 20:25:01 +0200
+Subject: [PATCH] Fix building with boost v1.89.0
+
+---
+ client/player/alsa_player.cpp | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+--- a/client/player/alsa_player.cpp
++++ b/client/player/alsa_player.cpp
+@@ -30,6 +30,7 @@
+ // standard headers
+ #include <chrono>
++#include <cmath>
+ using namespace std::chrono_literals;